home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2001 December
/
pcwk12201b.iso
/
Wersje pelne i specjalne
/
Winamp 2.77 i 3.0beta
/
wa3install_beta1.exe
/
Skins
/
Default.wal
/
Scripts
/
cfgint.m
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Text File
|
2001-10-04
|
423 b
|
21 lines
#include "../../../lib/std.mi"
Global Text txt;
Global Edit editor;
Global CfgGroup cgroup;
System.onScriptLoaded() {
cgroup = getScriptGroup();
txt = cgroup.getObject("cfg.txt");
editor = cgroup.getObject("cfg.edit");
}
editor.onEnter() {
cgroup.cfgSetInt(stringToInteger(getText()));
}
cgroup.onCfgChanged() {
txt.setText(cfgGetName());
editor.setText(integerToString(cfgGetInt()));
}